class ManageController < ApplicationController
layout "background"
  
before_filter:authorize
  
  def authorize
    unless User.find_by_id(session[:user_id])
      notice("请先登录！")
      session[:last_uri]=request.request_uri
      redirect_to_login
    end
  end

  def error_msg
    
  end
  
end
